<?php
class ModelMarketingMessage extends Model {
	

	public function editMessage($data) {
		// var_dump($data);die;
		$this->db->query("UPDATE " . DB_PREFIX . "cart_message SET message = '" . $this->db->escape($data['message']) . "'");

		
	}

	

	public function getMessage() {
		$query = $this->db->query("SELECT message FROM " . DB_PREFIX . "cart_message WHERE id = 1");

		return $query->row['message'];
	}

	

	
}